package learn.ch1;

/**
 * @Description todo
 * @Author yusj
 * @Date 2021/12/11
 * @Version 1.0
 */
public class TsRunable implements Runnable{
    @Override
    public void run() {
        try {
            Thread.sleep(500);
            System.out.println("runnable>"+Thread.currentThread().getName());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        TsRunable runable=new TsRunable();
        TsRunable runable1=new TsRunable();
        Thread thread=new Thread(runable);
        Thread thread1=new Thread(runable1);
        thread.start();
        thread1.start();
    }
}
